#ifndef WGTSQLCONFIG_H
#define WGTSQLCONFIG_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QThread>
#include <QLineEdit>
#include "ComboBox.h"
#include "SpinBox.h"
#include "IDataBaseWorker.h"

class WgtSqlConfig : public QWidget
{
    Q_OBJECT
public:
    explicit WgtSqlConfig(QWidget *parent = nullptr);
    void setConfig(SqlLinkParam param);
private:
    void setupUi();
signals:
    void sigConfigChanged(SqlLinkParam param);
private:
    QLineEdit* ledtLinkName;
    ComboBox* cbboxSqlType;
    QLineEdit* ledtIp;
    SpinBox* spboxPort;
    QLineEdit* ledtUser;
    QLineEdit* ledtPassword;
    QLineEdit* ledtDbName;
    QLineEdit* ledtTbName;
    QPushButton* pbtnSave;
};

#endif // WGTSQLCONFIG_H
